import { Tag } from 'ant-design-vue';
import type { TableColumn } from '@/components/core/dynamic-table';

export type TableListItem = API.PostListPageResult;
export type TableColumnItem = TableColumn<TableListItem>;

export const baseColumns: TableColumnItem[] = [
  {
    title: '用户ID',
    align: 'center',
    dataIndex: 'id',
    hideInTable: true,
    hideInSearch: true,
  },
  {
    title: '岗位名称',
    dataIndex: 'name',
    hideInSearch: false,
    align: 'center',
  },
  {
    title: '岗位编号',
    align: 'center',
    dataIndex: 'code',
  },
  {
    title: '岗位领导',
    hideInSearch: false,
    hideInTable: true,
    align: 'center',
    dataIndex: 'leaderName',
  },

  {
    title: '岗位职责',
    dataIndex: 'responsibility',
    hideInSearch: true,
    align: 'center',
  },
  {
    title: '岗位文档',
    align: 'center',
    dataIndex: 'document',
    hideInSearch: true,
  },
  {
    title: '任职资格',
    align: 'center',
    hideInSearch: true,
    dataIndex: 'qualification',
  },
  {
    title: '排序号',
    dataIndex: 'postSort',
    hideInSearch: true,
    hideInTable: true,
    align: 'center',
  },
  {
    title: '备注',
    dataIndex: 'remark',
    hideInSearch: true,
    align: 'center',
  },
];
